{{--/**
 * Created by PhpStrom
 * User: 郭碧云
 * Date: 2021/3/30 10:46
 * Desc:
 */--}}
<form id="org_create" style="margin-top: 15px;" class="layui-form" action="{{route('admin.org.store')}}">
    {{csrf_field()}}
    <div class="layui-form-item">
        <label class="layui-form-label">上级机构</label>
        <div class="layui-input-block">
            <select id="parent_id" name="parent_id" disabled style="color:#999">
                <option value="{{$parent['id']}}">{{$parent['name']}}</option>
            </select>
            <input style="display: none;" name="data[parent_id]" value="{{$parent['id']}}" />
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">名称</label>
        <div class="layui-input-block">
            <input type="text" id="name" name="data[name]" autocomplete="off" placeholder="请输入机构名称" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">排序</label>
        <div class="layui-input-block">
            <input type="number" id="sort" name="data[sort]" autocomplete="off" placeholder="请输入排列顺序"
                   class="layui-input" min="0">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">备注</label>
        <div class="layui-input-block">
            <textarea type="text" id="description" name="data[description]" autocomplete="off" placeholder="机构说明"
                      class="layui-input"></textarea>
        </div>
    </div>
</form>


